package com.microservice.base.mapper.hikcommon;

import com.microservice.base.entity.Org;
import com.microservice.base.mapper.BaseMP;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * org的mp类
 *
 * @author jbx
 * @package_name com.microservice.base.mapper
 * @create_date 2020/12/7 8:53
 */
public interface OrgMP extends BaseMP<Org> {
  /**
   * 保存
   *
   * @param org
   */
  @Override
  void save(Org org);

  @Override
  void saveBatch(List<Org> list);

  @Override
  int update(Org org);

  @Override
  Org get(String id);

  @Override
  List<Org> queryAll();

  List<Org> queryUpdate(int operation);

  List<Org> queryDelete(int operation);

  void updateOperation(@Param("operation") int operation, @Param("id") String id);

  Map<Object, Object> queryAllCount();

  Map<String, Object> getMaxLevel();

  List<Org> getOrgByLevel(int level);

  List<Org> orgByLevelAndStatus(@Param("level") int level,@Param("status") int status,@Param("operation") int operation);

    void replaceUpdate(List<Org> insertList);
}
